package com.qiaofei.mapper;

import com.qiaofei.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

/**
 * 员工管理
 */
@Mapper
public interface EmpMapper {

    /**
     * 员工信息查询
     * @return
     */
    List<Emp> list(String name, Short gender,LocalDate begin,LocalDate end);

    /**
     * 批量删除
     * @param ids
     */
    void delete(List<Integer> ids);

    /**
     * id查询
     * @param id
     */
    @Select("select * from emp where id = #{id}")
    public Emp getById(Integer id);
}
